package com.jtbd.dto.http;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jtbd.constants.StatusConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class CampusHttpDto {
    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "校区名称")
    private String campusName;
    @Schema(description = "描述")
    private String description;
    @Schema(description = "启用状态；0->禁用；1->启用")
    private Integer status = StatusConstant.NORMAL;
    @Schema(description = "创建人")
    private Long createId;
    @Schema(description = "修改人")
    private Long updateId;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "修改时间")
    private Date updateTime;
    @Schema(description = "校区logo")
    private String campusLogo;
    @Schema(description = "校区电话")
    private String campusPhone;
    @Schema(description = "校区地址")
    private String campusAddress;
    @Schema(description = "加盟时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date campusJointime;
    @Schema(description = "到期时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date campusExpiretime;
    @Schema(description = "所属机构ID")
    private Long orgId;
}
